﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShopOnline.aspx.cs" Inherits="WebAppTest.Shopping.ShopOnline" %>
<%@ Import Namespace="WebAppTest.Shopping.Domain"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link type="text/css" href="../style.css" rel="stylesheet" />
</head>
<body>
    <h1>Shop-e online!!!!</h1>
    
    <p id="welcome">Welcome to Shop-e online!</p>
    
    <div id="featuredProduct" class="box">
        <h3>Today's featured product</h3>
        <span id="title"><%= FeaturedProduct.GetFeaturedProduct().Description %></span>
        Unit cost: <span id="price"><%= FeaturedProduct.GetFeaturedProduct().UnitPrice.ToString("0.00$")%></span><br />
    </div>
    
    <form id="form1" runat="server">
        <div id="catalogSearchForm" class="box">
            <h3>Search</h3>
            <asp:TextBox ID="searchText" runat="server" />
            <asp:Button ID="searchButton" Text="Search" runat="server" OnClick="btnSearch_Click"  />
        </div>
    
    
    
    
        Unit cost: <span id="unitPrice"><%= ShoppingCart.UnitPrice.ToString("0.00$") %></span><br />
        Number of units: <input id="numberOfUnits" /> <br />
        <asp:Button ID="proceeedToCheckout" runat="server" Text="Proceeed To Checkout" 
            onclick="proceeedToCheckout_Click" />
    </form>
</body>
</html>
